from django.http import JsonResponse
from django.shortcuts import render
from rest_framework.views import APIView


# Create your views here.

class UserAPIView(APIView):
    def post(self, request):
        res = {"code":200,"data":{
            "isSuperuser"
            :
                True,
            "nickName"
            :
                "翁学豪",
            "refresh"
            :
                "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcyMDA3OTU5NSwiaWF0IjoxNzE5OTA2Nzk1LCJqdGkiOiJmMDdiZmVlMjRiYjc0MWJiOGQzNTdmMmE2YzBkZmY5ZiIsInVzZXJfaWQiOjc5LCJrZXkiOiJhcGlzaXgifQ.WoAudiseqVdAYf5jv8sGPA2-eULY-LJadA3aCoK381Y"
            , "tenantUser"
            :
                [15, 849, 1017, 1043, 1127, 1129, 1157, 1159, 1161],
            "token"
            :
                "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzE5OTkzMTk1LCJpYXQiOjE3MTk5MDY3OTUsImp0aSI6IjJmZGYyMTlhMjA5MTQxNWZiOWFhODk5OGUyMTZhMjIxIiwidXNlcl9pZCI6NzksImtleSI6ImFwaXNpeCJ9.jdyE1RzhjnK7Mf7sZE0IioSxbsk44dYA1_tB3STcEiU"
            , "userID"
            :
                79,
            "userName"
            :
                "xhweng"
        },"msg":"success"}
        return JsonResponse(status=200, data=res)
